package com.xiaobingby.easyuisys.entity;

import com.xiaobingby.sys.entity.Permission;

import java.util.ArrayList;
import java.util.List;

/**
 * 权限treegrid
 * @author 李磊
 * @date 2019/5/9
 */
public class PermTreegrid extends Permission{
    private List<PermTreegrid> children = new ArrayList<>();
    private PermTreegrid parentTreegrid;
    private String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public PermTreegrid getParentTreegrid() {
        return parentTreegrid;
    }

    public void setParentTreegrid(PermTreegrid parentTreegrid) {
        this.parentTreegrid = parentTreegrid;
    }

    public void addChild(PermTreegrid permTreegrid){
        children.add(permTreegrid);
    }

    public List<PermTreegrid> getChildren() {
        return children;
    }
}
